import type { RouteObject } from 'react-router-dom'

export interface XMeta {
  icon?: React.ReactNode
  title?: string
}
// 接口继承接口, 将被继承的接口中的配置属性继承到自己的接口中
export interface XRoute extends RouteObject {
  meta?: XMeta
  children?: XRoutes
  hidden?: boolean
}

export type XRoutes = XRoute[]
